package com.houweishi.module.purchase.service;

import java.util.List;

import com.houweishi.common.core.domain.AjaxResult;
import com.houweishi.module.purchase.domain.OaPurchase;
import com.houweishi.module.purchase.domain.OaPurchaseApproval;

/**
 * 采购申请Service接口
 * 
 * @author houweishi
 * @date 2023-03-27
 */
public interface IOaPurchaseService 
{
    /**
     * 查询采购申请
     * 
     * @param id 采购申请主键
     * @return 采购申请
     */
    public OaPurchase selectOaPurchaseById(Long id);

    /**
     * 查询采购申请列表
     * 
     * @param oaPurchase 采购申请
     * @return 采购申请集合
     */
    public List<OaPurchase> selectOaPurchaseList(OaPurchase oaPurchase);

    /**
     * 查询采购申请列表(含业务表状态)
     *
     * @param oaPurchase 采购申请
     * @return 采购申请集合
     */
    public List<OaPurchaseApproval> selectOaPurchaseApprovalList(OaPurchaseApproval oaPurchase);

    /**
     * 新增采购申请
     * 
     * @param oaPurchase 采购申请
     * @return 结果
     */
    public AjaxResult insertOaPurchase(OaPurchase oaPurchase);

    /**
     * 修改采购申请
     * 
     * @param oaPurchase 采购申请
     * @return 结果
     */
    public int updateOaPurchase(OaPurchase oaPurchase);

    /**
     * 批量删除采购申请
     * 
     * @param ids 需要删除的采购申请主键集合
     * @return 结果
     */
    public int deleteOaPurchaseByIds(Long[] ids);

    /**
     * 删除采购申请信息
     * 
     * @param id 采购申请主键
     * @return 结果
     */
    public int deleteOaPurchaseById(Long id);
}
